package edu.bbu.bibliospring.backend.service;

import edu.bbu.bibliospring.backend.model.Author;
import edu.bbu.bibliospring.backend.service.exception.BibliospringServiceException;

import javax.ejb.Remote;
import java.util.List;

@Remote
public interface AuthorService {

    List<Author> getAll() throws BibliospringServiceException;

    Author getById(Long id) throws BibliospringServiceException;

    Author insertAuthor(Author author) throws BibliospringServiceException;

    Long deleteAuthor(Author author) throws BibliospringServiceException;
}
